﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucListProductBrand.ascx.cs" Inherits="SES.CMS.AdminCP.PageUC.ucListProductBrand" %>
<h2>Danh sách nhãn hiệu</h2>
<div style="width: 90%; float: left; margin-bottom: 10px;">
</div>
<div style="float:left; width:100%;">
    <asp:GridView ID="grvNhanHieu" DataKeyNames="NhanHieuID" runat="server" AutoGenerateColumns="False"
        BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px"
        CellPadding="4" OnRowDeleting="grvNhanHieu_RowDeleting" OnSelectedIndexChanged="grvNhanHieu_SelectedIndexChanged"
        PageSize="20" Width="100%" AllowPaging="True" 
        onpageindexchanging="grvNhanHieu_PageIndexChanging">
        <RowStyle BackColor="White" ForeColor="#330099" />
        <Columns>
            <asp:BoundField DataField="TenNhanHieu" HeaderText="Tên nhãn hiệu" SortExpression="TenNhanHieu" />
            <asp:BoundField DataField="MoTa" HeaderText="Mô tả" SortExpression="MoTa" />
            <asp:BoundField DataField="Logo" HeaderText="Logo" SortExpression="Logo" />
            <asp:TemplateField HeaderText="Logo">
                <ItemTemplate>
                    <img alt="logo" width="100px" height="100px" src='../Media/<%#Eval("Logo")%>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:ImageButton ID="btEdit" runat="server" CommandName="Select" ImageUrl="~/AdminCP/images/edit_16x16.gif" />
                    <asp:ImageButton ID="btDelete" runat="server" CommandArgument='<%#Eval("NhanHieuID") %>'
                        CommandName="Delete" ImageUrl="~/AdminCP/images/delete_16x16.gif" OnClientClick="return confirm('Có muốn xóa bản ghi này? Nhấn OK để xóa!')" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
        <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
    </asp:GridView>
    <br />
    <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="Thêm mới" />
</div>
